﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Volo.Abp.Domain.Entities;

namespace TodoApp.TMS_personnelmatters.Employeess
{
    /// <summary>
    /// 员工表-张笑宇
    /// </summary>
    public class TMS_Employees: BasicAggregateRoot<Guid>
    {
        /// <summary>
        /// 姓名
        /// </summary>
        [Required(ErrorMessage ="姓名不能为空")]
        [StringLength(20)]
        public string Employees_Name { get; set; }
        /// <summary>
        /// 性别
        /// </summary>
        [Required(ErrorMessage = "性别不能为空")]
        public bool EmployeesSex { get; set; }
        /// <summary>
        /// 手机号
        /// </summary>
        [Required(ErrorMessage = "手机号不能为空")]
        [RegularExpression(@"^[1]([3-9])[0-9]{9}$",ErrorMessage =("手机号格式不正确"))]
        public string Employees_Phone { get; set; }
        /// <summary>
        /// 院校
        /// </summary>
        [Required(ErrorMessage = "院校不能为空")]
        [StringLength(20)]
        public string Employees_Universities { get; set; }
        /// <summary>
        /// 专业
        /// </summary>
        [Required(ErrorMessage = "专业不能为空")]
        [StringLength(20)]
        public string Employees_Professional { get; set; }
        /// <summary>
        /// 家庭住址
        /// </summary>
        [Required(ErrorMessage = "家庭住址不能为空")]
        [StringLength(20)]
        public string Employees_Address { get; set; }
        /// <summary>
        /// 学历
        /// </summary>
        [Required(ErrorMessage = "学历不能为空")]
        public int Employees_EducationBackground { get; set;}
        /// <summary>
        /// 政治面貌
        /// </summary>
        [StringLength(20)]
        public string Employees_PoliticalLandscape { get; set; }
        /// <summary>
        /// 民族
        /// </summary>
        [StringLength(20)]
        public string Employees_National { get; set; }
        /// <summary>
        /// 籍贯
        /// </summary>
        [StringLength(20)]
        public string Employees_NativePlace { get; set; }
        /// <summary>
        /// 婚姻
        /// </summary>
        public int Employees_Marriage { get; set; }
        /// <summary>
        /// 出生日期
        /// </summary>
        public DateTime Employees_DateBirth { get; set; }
        /// <summary>
        /// 邮箱
        /// </summary>
        [RegularExpression(@"^[a-zA-Z0-9_-]+@[a-zA-Z0-9_-]+(\.[a-zA-Z0-9_-]+)+$", ErrorMessage = ("邮箱格式不正确"))]
        [StringLength(50)]
        public string Employees_Email { get; set; }
        /// <summary>
        /// 身份证号
        /// </summary>
        [StringLength(20)]
        public string Employees_IdCard { get; set; }
        /// <summary>
        /// 部门
        /// </summary>
        [StringLength(150)]
        public string Department_Id { get; set; }
        /// <summary>
        /// 职位
        /// </summary>
        [StringLength(150)]
        public string Position_Id { get;set; }
        /// <summary>
        /// 员工类别
        /// </summary>
        public int Employees_Category { get;set;}
        /// <summary>
        /// 员工状态
        /// </summary>
        public int Employees_State { get; set; }=0;
        /// <summary>
        /// 删除
        /// </summary>
        public bool Employees_Delete { get; set; } = true;
        /// <summary>
        /// 创建时间
        /// </summary>
        public DateTime Employees_DateTime { get; set; }= DateTime.Now;
    }
}
